<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />

  <script src="https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js"></script>

  <script src="../../cdn/vue/vue.global.min.js"></script>
  <!-- 导入表格需要的包 -->

  <script src="https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js"></script>
  <script src="https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js"></script>
  <link rel="stylesheet" href="../../cdn/element-plus/index.css" />
  <script src="../../cdn/element-plus/index.full.min.js"></script>
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    <el-tabs v-model="activeName">
      <el-tab-pane label="用户管理" name="1">
        <avue-crud :data="data1" :option="option1"></avue-crud>
      </el-tab-pane>
      <el-tab-pane label="配置管理" name="2">
        <avue-crud :data="data2" :option="option2"></avue-crud>
      </el-tab-pane>
    </el-tabs>
  </div>
</body>
<script>
  var app = Vue.createApp({
    data() {
      return {
        data1: [{
          text1: 1,
          text2: 2,
          text3: 3,
          text4: 4,
          text5: 5,
          text6: 6,
          text7: 7
        }],
        data2: [{
          text1: 1,
          text2: 2,
          text3: 3,
          text4: 4,
          text5: 5,
          text6: 6,
          text7: 7
        }],
        option1: {
          border: true,
          index: true,
          column: [{
            label: '测试1',
            prop: 'text1',
            width: 1200,
          }, {
            label: '测试2',
            prop: 'text2'
          }, {
            label: '测试3',
            prop: 'text3'
          }, {
            label: '测试4',
            prop: 'text4'
          }, {
            label: '测试5',
            prop: 'text5'
          }, {
            label: '测试6',
            prop: 'text6'
          }, {
            label: '测试7',
            prop: 'text7'
          }]
        },
        option2: {
          border: true,
          index: true,
          column: [{
            label: '测试1',
            prop: 'text1',
            width: 1200,
          }, {
            label: '测试2',
            prop: 'text2'
          }, {
            label: '测试3',
            prop: 'text3'
          }, {
            label: '测试4',
            prop: 'text4'
          }, {
            label: '测试5',
            prop: 'text5'
          }, {
            label: '测试6',
            prop: 'text6'
          }, {
            label: '测试7',
            prop: 'text7'
          }]
        },
        activeName: '1'
      }
    }
  })
  app.use(ElementPlus)
  app.use(AVUE)
  app.mount('#app')
</script>

</html>